<%@ page language="java" contentType="text/html; charset=UTF-8" import="org.springframework.ui.ModelMap" import="java.util.*,com.device.operating.entity.*"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/icon.css">
<script type="text/javascript" src="/xasj/easyui/jquery.min.js"></script>
<script type="text/javascript" src="/xasj/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/xasj/js/autoscan/dvfsec.js"></script>
<script type="text/javascript">

</script>
</head>
<% List<Devres> ld=(List<Devres>)request.getAttribute("ld");
List<Fieldres> lf=(List<Fieldres>)request.getAttribute("lf");
List<Failuretype> listf=(List<Failuretype>) request.getAttribute("listf");
%>
<body >
	<div class="easyui-panel" title="故障综合查询" data-options="iconCls:'icon-search',collapsible:true,closable:true">
	<table style="padding-top:10px;padding-left:10px" width="100%"  >
		<tr >
		<td width="10%">设备类型：</td>		
		<td width="12%">
		<select id="dvbel" style="width:99%;height:98%">
			<option value="">请选择</option>
		<%for(Devres dv:ld){%>
			<option value="<%=dv.getDvbelong()%>"><%=dv.getDevresname()%></option>
		<%}%>				
		</select>
		</td>
		<td width="9%">节点名称</td>				
		<td width="12%">
		<input id="dvname" class="easyui-textbox"style="width:98%;height:98%"  />
		</td>
		<td width="9%">设备IP：</td>				
		<td width="16%">
		<input id="dvip" class="easyui-textbox"style="width:98%;height:98%" />
		</td>
		</tr>
		
		<tr >
		<td>起始时间：</td>
		<td><input id="begintime" class="easyui-datetimebox"style="width:98%;height:98%"/></td>
		<td>终止时间：</td>
		<td><input id="endtime" class="easyui-datetimebox"style="width:98%;height:98%"/></td>
		<td>按月查询：</td>
		<td><input id="anyue" class="easyui-datebox" style="width:98%;height:98%"/></td>
		</tr>
		
		<tr >
		<td>持续时间(最小/分)：</td>
		<td><input id="lastedminbegin" style="width:99%;height:98%"></td>
		<td>持续时间(最大/分)：</td>
		<td><input id="lastedminend" style="width:99%;height:98%"></td>
		</tr>
		
		<tr >
		<td>故障类别：</td>
		<td>
		<select id="failuretype"class="easyui-combobox" style="width:99%;height:99%">
			<option value="">请选择</option>
		<%for(Failuretype failuretype:listf){%>
			<option value="<%=failuretype.getFailuretypeId()%>"><%=failuretype.getFailuretype()%></option>
		<%}%>		
		</select>
		</td>
		<td>故障名称：</td>
		<td>
		<select id="failure" class="easyui-combobox" style="width:99%;height:98%">
			<option value="">请选择</option>
			
		</select>
		</td>
		<td>故障信息来源：</td>
		<td>
		<select id="recordfrom" class="easyui-combobox" style="width:99%;height:98%">
		<option value="">请选择</option>
		<option value="实时监控">实时监控</option>
		<option value="人工录入">人工录入</option>			
		</select>
		</td>
		</tr>
		
		<tr id="jfrow"> </tr>
		
		
		<tr  id="xhrow"></tr>
		<tr>
		<td>属性选择：</td>
		<td colspan="3">
			<%for(Fieldres d:lf){
				if(d.isIfavail()){%>															
				<input type="checkbox" data-sectype="<%=d.getSectype()%>" name="fshow" data-fname="<%=d.getFieldname()%>" <%if(d.isIfshow()==true){%>checked="checked"<%}%>  value="<%=d.getFieldcode()%>" /><%=d.getFieldname()%>
			<%}}%>
		</td>
		</tr>	
		
	</table>
	</div>
    	<div id="ft" >
    	<a  id="search" type="button" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:'true'" style="width:30%">开始查询</a>
    	</div> 
    	<div id="content"class="easyui-panel" title="查询结果"data-options="iconCls:'icon-save',fit:true,collapsible:true,closable:true">
		<table id="searchres" >
		</table>
		<a id="exportexcel" class="easyui-linkbutton" data-options="iconCls:'icon-redo',plain:'true'" style="width:30%;display:none">导出当前页</a>
		<a id="exportexcelall" class="easyui-linkbutton" data-options="iconCls:'icon-redo',plain:'true'" style="width:30%;display:none">导出所有结果</a>
		</div>
	
	
	<div id="dig">
	</div>


</body>
</html>